//
//  secondViewController.swift
//  Transition
//
//  Created by Open on 2/3/15.
//  Copyright (c) 2015 open-groupe. All rights reserved.
//

import UIKit

class secondViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        var swipeGuestureRecognizer: UISwipeGestureRecognizer = UISwipeGestureRecognizer(target: self,action: "showFirstViewController")
        swipeGuestureRecognizer.direction = UISwipeGestureRecognizerDirection.Down
        self.view.addGestureRecognizer(swipeGuestureRecognizer)
    }
    
    func showFirstViewController ()
    {
        self.performSegueWithIdentifier("idFirstSegueUnwind", sender: self);
        NSLog("back to firstViewC");
    }
    
   
    @IBOutlet var showThirdVC: UIButton!
    
    @IBAction func gotoThirdVC(sender: AnyObject) {
        
        self.performSegueWithIdentifier("secondSegueId", sender: self)
    }
    
     
}
